var myEcharts = echarts.init(document.getElementById('orderEchart'));
var option = {
    tooltip : {
        trigger: 'item',
        formatter: "{a} <br/>{b} : {c} ({d}%)"
    },
    legend: {
        orient: 'horizontal',
        top: 'bottom',
        data: ['PC','网络','安全']
    },
    color:['#4acacb','#fc8675','#5AB6DF'],
    series : [
        {
            name: '访问来源',
            type: 'pie',
            data:[
                {value:28, name:'PC'},
                {value:18, name:'网络'},
                {value:6, name:'安全'}
            ],
            itemStyle: {
                emphasis: {
                    shadowBlur: 10,
                    shadowOffsetX: 0,
                    shadowColor: 'rgba(0, 0, 0, 0.5)'
                }
            },
            labelLine:{
                show:false
            },
            label:{
                normal:{show:false}
            }
        }
    ]
};
myEcharts.setOption(option);